//
//  WISAlertView.h
//  WisdomStudy
//
//  Created by  androidlongs on 2017/9/3.
//  Copyright © 2017年  androidlongs. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^AlertResult)(NSInteger index);
typedef void(^CancleResult)(NSInteger index);


///alertView  宽
#define AlertW 280
///各个栏目之间的距离
#define XLSpace 10.0
@interface WISAlertView : UIView

@property (nonatomic,copy) AlertResult resultIndex;
@property (nonatomic,copy) CancleResult cancleIndex;
//弹窗
@property (nonatomic,retain) UIView *alertView;
//title
@property (nonatomic,retain) UILabel *titleLbl;
//内容
@property (nonatomic,retain) UILabel *msgLbl;
//确认按钮
@property (nonatomic,retain) UIButton *sureBtn;
//取消按钮
@property (nonatomic,retain) UIButton *cancleBtn;
//横线线
@property (nonatomic,retain) UIView *lineView;
//竖线
@property (nonatomic,retain) UIView *verLineView;


@property (nonatomic,assign) NSInteger selectIndex;

- (instancetype)initWithTitle:(NSString *)title message:(NSString *)message sureBtn:(NSString *)sureTitle cancleBtn:(NSString *)cancleTitle;

- (void)showXLAlertView;
- (void)dismissXLAlertView;
@end
